package com.ftg.learn.product.service;

import com.ftg.learn.product.mapper.DeptMapper;
import com.ftg.learn.product.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptService {
    @Autowired
    DeptMapper deptMapper;

    public List<Dept> show(){

        return deptMapper.show();
    }
    public List<Dept> findone(String deptno){
        return deptMapper.findone(deptno);
    }

    public int update(Dept dept) {
        return deptMapper.update(dept);
    }

    public int delete(String deptno) {
        return deptMapper.delete(deptno);
    }

    public int save(Dept dept) {
        return deptMapper.save(dept);
    }

}
